-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Update Batch SDK to 20250601 API version #47619
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
fe351bf to
ec2ca16
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This pull request updates the Azure Batch SDK for Java to API version 2025-06-01, introducing new features and removing deprecated functionality.
Changes:
- API version updated from 2024-07-01.20.0 to 2025-06-01
- Removed deprecated features: Certificate APIs, NodeCommunicationMode, and ResourceTags
- Added new models for disk encryption, proxy agent settings, IP configuration (IPv6 support), and job scheduling
- Refactored test cleanup logic from finally blocks to sequential execution
- Added tests for pool PUT and REPLACE operations with disk encryption sets
Reviewed changes
Copilot reviewed 57 out of 61 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| TaskTests.java | Refactored test cleanup from try-catch-finally to sequential execution |
| SharedKeyTests.java | Removed NodeCommunicationMode references and Certificate handling from pool tests |
| PoolTests.java | Removed try-catch-finally wrappers, added pool replace/update tests, removed NodeCommunicationMode |
| JobTests.java | Refactored cleanup logic, removed NodeCommunicationMode from job specifications |
| JobScheduleTests.java | Simplified test structure by removing try-catch-finally blocks |
| FileTests.java | Refactored cleanup logic to sequential execution |
| ReadmeSamples.java | Removed all Certificate API examples |
| UpgradeMode.java | Fixed typo in documentation ("TAll" → "All") |
| SecurityProfile.java | Added proxyAgentSettings field with getters/setters |
| SecurityEncryptionTypes.java | Improved documentation and added DISK_WITH_VMGUEST_STATE constant |
| ManagedDisk.java | Added diskEncryptionSet field for customer-managed encryption |
| DataDisk.java | Added managedDisk field for managed disk parameters |
| BatchTaskSchedulingPolicy.java | Changed from @immutable to @fluent, added jobDefaultOrder field |
| BatchPublicIpAddressConfiguration.java | Added ipFamilies and ipTags for IPv6 and IP tagging support |
| BatchPoolUpdateParameters.java | Removed certificateReferences, targetNodeCommunicationMode, and resourceTags |
| BatchPoolSpecification.java | Removed certificateReferences, targetNodeCommunicationMode, and resourceTags |
| BatchPoolReplaceParameters.java | Removed certificateReferences and targetNodeCommunicationMode parameters |
| BatchJobNetworkConfiguration.java | Updated documentation to note feature requires support contact |
| New model files | Added ProxyAgentSettings, DiskCustomerManagedKey, DiskEncryptionSetParameters, BatchPoolIdentityReference, IPTag, IPFamily, HostEndpointSettings, HostEndpointSettingsModeTypes, BatchJobDefaultOrder |
| Deleted file | BatchNodeCommunicationMode.java removed |
| Metadata files | Updated API version and cross-language definitions |
API Change CheckAPIView identified API level changes in this PR and created the following API reviews |
Description
If an SDK is being regenerated based on a new swagger spec, a link to the pull request containing these swagger spec changes has been included above.
All SDK Contribution checklist:
General Guidelines and Best Practices
Testing Guidelines